package com.lb.sssq.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.lb.sssq.domain.Template;
import com.lb.sssq.persistence.TemplateMapper;

@Repository
public class TemplateDao {
	@Autowired
	private TemplateMapper templateMapper;
	/**
	 * 根据模板通知类型和模板KEY 得到模板 
	 * @param temp
	 * @return
	 */
	public Template getTemplateByKeyAndType(Template temp){
		return this.templateMapper.getTemplateByKeyAndType(temp);
	}
}
